package cn.sw.file.fragmentation.reactminiospring.mapper;

import cn.sw.file.fragmentation.reactminiospring.entity.Files;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;


/**
 * 文件表 Mapper 接口
 */
@Mapper
public interface FilesMapper extends BaseMapper<Files> {
    /**
     * 物理删除文件记录
     */
    @Delete("DELETE FROM files WHERE id = #{id}")
    int deleteFilePhysicallyById(Long id);

}
